import path from 'node:path';
import { app } from 'electron';

/**
 * 判断当前环境是否为dev环境
 * **/
export const isDevelopment = () => {
    return !app.isPackaged;
};

/**
 * 获取打包后的resource目录中的资源
 * **/
export const getResourceStatic = (...args: Array<string>) => {
    return path.resolve(process.resourcesPath, ...args);
};
